package hzncc.wcs.entity.wcs;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 库位 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-12-20
* Copyright © MyCorp
*/
@TableName("mdl_warehouse_position")
@Getter @Setter @Accessors(chain = true)
public class WarehousePosition extends BaseModel {
    private static final long serialVersionUID = 1509574164050253255L;
     /**
     * 仓库编码
     */
     @Length(max=100, message="仓库编码长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String warehouseCode;

     /**
     * 仓库id
     */
     @Length(max=32, message="仓库id长度应小于32")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String warehouseId;

     /**
     * 行
     */
     @TableField(value = "`row`")
     private Long row;

     /**
     * 排
     */
     @TableField(value = "`order`")
     private Long order;

     /**
     * 列
     */
     @TableField(value = "`column`")
     private Long column;

     /**
     * 物料编码
     */
     @Length(max=100, message="物料编码长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String mrlCode;

     /**
     * 物料类型
     */
     @Length(max=100, message="物料类型长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String mrlType;

     /**
     * 数量
     */
     @TableField()
     private BigDecimal qty;

     /**
     * 单位
     */
     @TableField()
     private String unit;

     /**
     * 区域
     */
     @Length(max=100, message="区域长度应小于100")
     @BindQuery(comparison = Comparison.LIKE)
     @TableField()
     private String area;


}